home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / tsfilt21.zip / TSFILT.NWS < prev    next >
Text File  |  1994-02-11  |  9KB  |  177 lines

  1. News on the TSFILT text file filter package in reverse order
  2. ============================================================
  3.  
  4. University of Vaasa, Finland, SUN SPARCstation IPX garbo.uwasa.fi
  5. has a large collection of PD and shareware PC programs available by
  6. anonymous ftp and mail server. The file /pc/ts/0news-ts contains
  7. news about the TS-programs in the /pc/ts directory (in reverse
  8. order). This text, which you now have, is an extract from the
  9. 0news-ts file and UseNet news.
  10. ..................................................................
  11. Prof. Timo Salmi      Co-moderator of comp.archives.msdos.announce
  12. Moderating at garbo.uwasa.fi anonymous FTP  archives  128.214.87.1
  13. Faculty of Accounting & Industrial Management; University of Vaasa
  14. Internet: ts@uwasa.fi   BBS +(358)-61-3170972; FIN-65101,  Finland
  15. ..................................................................
  16.  
  17. Fri 11-Feb-94: If anything can go wrong, it will. I recently
  18. released updates of my filters, but unfortunately several bugs were
  19. still found. In particular my thanks to Dave Kapalko
  20. medik@attme.att.com Hence update garbo.uwasa.fi:/pc/ts/tsfilt21.zip.
  21. - Corrected the /k keep date option. It did not work at all in
  22.   LOGFILT "Filters backspaces from logfiles"
  23. - It refused process backspaces. Corrected that.
  24.  
  25. Sun 23-Jan-94: I have updated my filters for text files to be
  26. garbo.uwasa.fi:/pc/ts/tsfilt20.zip by adding a /f switch (force
  27. overwrite if source = destination) to the following individual
  28. programs. My thanks to Antti Virjo avirjo@tays.fi for the
  29. suggestion.
  30.   LOGFILT.EXE "Filters backspaces from logfiles"
  31.   TOASC.EXE   "8bit ibm to Scandinavian 7 ascii"
  32.   TOASCI.EXE  "8bit ibm to International 7ascii"
  33.   TOIBM.EXE   "7 ascii to Scandinavian 8bit ibm"
  34. The first of these has become somewhat obsolete in the sense that
  35. modems now tend to be error-correcting.
  36.  
  37. Wed 29-Jan-92: I have updated to garbo.uwasa.fi:/pc/ts/tsfilt19.zip.
  38. It is a collection of filters for text files. Among others it
  39. includes programs for converting text files from 8-bit ascii to
  40. 7-bit ascii with Scandinavian conventions. The programs are
  41. TOASC.EXE and TOASCI.EXE. There is also a Scandinavian conversion
  42. TOIBM.EXE from 7-bit ascii to 8-bit ascii. The fourth update is
  43. LOGFILT.EXE to filter noise from telecommunication log files. These
  44. programs have now the following enhancements:
  45. - A new optional keep switch (/k) to make the date/time stamp of the
  46.   destination file the same as that of the source text file.
  47. - To allow the source text file and the destination file be the
  48.   same. In other words the programs can now make the conversion
  49.   without forcing you to produce new files with names different from
  50.   the original.
  51. - The programs first test whether the source file is a proper text
  52.   file with MsDos #13#10 eolns, no special characters (#0..#6, #8,
  53.   #11, #14..#25, #28..#31), and no lines exceeding 254 characters in
  54.   length. If not the conversion will not be attempted.
  55. Some examples of the current usages:
  56.  TOASC MyText.txt /k                     (ä -> }, ö -> |, etc)
  57.  TOASC MyText.txt conv.txt
  58.  TOASC MyText con /m
  59.  
  60. Fri 18-Oct-91: I have updated my filters for converting Unix <-->
  61. MsDos text files. As you know, Unix text files use ascii 10 as eolns
  62. (end of lines), while MsDos text files use the ascii 13 10 pair.
  63. PC2UNIX.EXE and UNIX2PC.EXE filters in the updated
  64.      garbo.uwasa.fi:/pc/ts/tsfilt18.arc
  65. can be used to convert the eolns. I have added a /t test switch for
  66. batch programming to both the filters. When the switch is on, the
  67. filters return errorlevel==0 if the file redirected to the filter is
  68. a text file. Else it returns errorlevel==1.
  69.    I have added a U2PC.BAT batch which utilizes this feature. The
  70. purpose of the U2PC.BAT batch is to convert the original Unix text
  71. file into an MsDos text file, and preserve the date/time stamp of
  72. the file in converting it. To use it you'll need my TOUCH.EXE
  73. program from garbo.uwaswa.fi:/pc/ts/tsutlb19.arc (note that earlier
  74. versions won't do). You also must have at least MsDos version 3.30.
  75.    In fact I wrote this batch for my own needs, but decided to make
  76. it publicly available, too. The background is this. I have been
  77. transferring also text files from my hosts (chyde and garbo) via a
  78. modem connection to my home PC.  To make the transfer more efficient
  79. I have used .arc compression first. This choice is because .arc can
  80. correctly handle the the Unix <-> PC eoln conversion, while the
  81. current .zip and .zoo do not have this feature. However, because of
  82. its better efficiency I want to use .zip packing to transfer the
  83. text files. But I also want to preserve the original date/time
  84. stamps of the files when I do the eoln conversion on my PC after
  85. unpacking the relevant .zip file, so I wrote this batch for this
  86. purpose.
  87.    Furthermore, there is a new UNZIPTXT.BAT batch which unzips a zip
  88. file and converts the found Unix text files into MsDos text files
  89. while preserving the date/time stamps intact.
  90.    Incidentally, if you find U2PC.BAT and UNZIPTXT.BAT instructive,
  91. there is plenty more in /pc/ts/tsbat27.arc.
  92.  
  93. Tue 21-May-91: I have programmed three sets of various MsDos
  94. filters, and now updated the first set to be /pc/ts/tsfile17.arc. In
  95. general, the true (Unix-type) filters are written to rely on pipes
  96. and/or redirection. A common practical problem with these filters is
  97. that if you type the filter name all by itself, you appear to be
  98. stuck. In actual fact the filter is just expecting input from the
  99. console. The remedy to this problem is to program the filter in a
  100. way that it senses whether it is getting piped (or redirected)
  101. input. If it is not, then instead of filtering, the call to the
  102. filter should give the instructions. As an example consider the
  103. filter UNIX2PC which converts Unix eolns (end of lines) to PC eolns
  104. (useful if you transfer Unix text files to your PC). The common
  105. syntax using pipe and redirection is
  106.           TYPE UNIX.TXT | UNIX2PC > PC.TXT
  107. What I have done is to reprogram UNIX2PC in such a way that if you
  108. write alone
  109.           UNIX2PC
  110. this call will give you the instructions, instead of waiting for
  111. input from the console to the filter. Technically speaking this is
  112. achieved by a program code which detects where the input comes from,
  113. and acts accordingly. The idea for using this redirection detection
  114. code comes from an article in the PC Magazine, April 16, 1991, p.
  115. 374. (This does not work for MsDos versions earlier than 2.00).
  116.    I have included this feature in the following of the filters in
  117. the updated tsfilt17.arc package:
  118.           PC2UNIX.EXE     PC text eolns to Unix eolns
  119.           UNIX2PC.EXE     Unix text eolns to PC eolns
  120.           ASC2IBM.EXE     7 ascii to Scandinavian 8bit ibm
  121.           IBM2ASC.EXE     8bit ibm to Scandinavian 7 ascii
  122. The input and output of also ASC2IBM.EXE and IBM2ASC.EXE has not
  123. been buffered for faster disk access (in other words these filters
  124. kind of have a cache of their own).
  125.    The following edited extract from my Frequently Asked Questions
  126. is also of interest here:
  127. 23. *****
  128.  Q: Where can I find compress for MsDos to handle .Z files?
  129.  A: Unix has compress, uncompress and zcat programs to pack or
  130. unpack files which are given the .Z extension. These files can also
  131. be handled under MsDos using for example /pc/unix/comp430d.zip,
  132. which is available from anonymous FTP sites like garbo.uwasa.fi,
  133. SIMTEL20, etc.
  134.    There is one useful trick if you uncompress on MsDos such text
  135. files that have been made on Unix with compress. Unix and MsDos have
  136. different eolns (end of lines). You can extract a Unix compressed
  137. text file as follows
  138.       comp430d -d -c YourZFile | unix2pc > YourOutputFile
  139. where unix2pc.exe is taken from /pc/ts/tsfilt17.arc (or whatever is
  140. the current version number).
  141.  
  142.  
  143. 28-Aug-89: TSFILT16.ARC has the following enhancements:
  144.  
  145. - ASC2IBM.EXE and IBM2ASC.EXE have been added. These are filters for
  146.   Scandinavian conversions of 8-bit <--> 7-bit characters. They
  147.   perform a similar function as TOIBM.EXE and TOASC.EXE. The
  148.   difference is that the latter are programs taking the